//
//  MCLotteryDrawDetailsCollectionViewCell.m
//  TLYL
//
//  Created by MC on 2017/6/19.
//  Copyright © 2017年 TLYL01. All rights reserved.
//

#import "MCLotteryDrawDetailsCollectionViewCell.h"

@interface MCLotteryDrawDetailsCollectionViewCell ()

@property (nonatomic,strong)UIImageView *imgV_logo;
@property (nonatomic,strong)UILabel *lab_title;

@end


@implementation MCLotteryDrawDetailsCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self){
        [self initView];
    }
    return self;
}
    
-(void)setDataSource:(id)dataSource{
    _dataSource=dataSource;
    _lab_title.text =dataSource;
}

-(void)initView{
    self.backgroundColor = [UIColor  clearColor];
    
    _imgV_logo=[[UIImageView alloc]init];
    _imgV_logo.backgroundColor=[UIColor cyanColor];
    [self addSubview:_imgV_logo];
    _imgV_logo.layer.cornerRadius=15;
    _imgV_logo.clipsToBounds=YES;
    [_imgV_logo mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mas_top).offset(0);
        make.bottom.equalTo(self.mas_bottom);
        make.left.equalTo(self.mas_left);
        make.right.equalTo(self.mas_right);
    }];
    
    _lab_title =[[UILabel alloc]initWithFrame:CGRectZero];
    _lab_title.alpha=0.8;
    _lab_title.textColor=[UIColor grayColor];
    _lab_title.font=[UIFont systemFontOfSize:10];
    _lab_title.text =@"加载中";
    _lab_title.textAlignment=NSTextAlignmentCenter;
    [self  addSubview:_lab_title];
    [_lab_title mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mas_top).offset(0);
        make.bottom.equalTo(self.mas_bottom);
        make.left.equalTo(self.mas_left);
        make.right.equalTo(self.mas_right);
    }];
    
    
}

+(CGFloat)computeHeight:(id)info{
    return 30;
}


@end
